package cn.sciento.onelink.sim.aggregative.group.managment;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;

/**
 *  群组成员管理
 *  @author waltonlee
 */
@Data
public class SimGroupManagmentRequest extends LinkRequest<CommonResponse<SimGroupManagmentResult>> {
    private String appId;
    private String tkoen;
    private String msisdn;
    private String groupId;
    private String operType;
    private String effectType;

    public SimGroupManagmentRequest(String appId, String tkoen, String msisdn, String groupId, String operType, String effectType) {
        super(Method.GET);
        this.appId = appId;
        this.tkoen = tkoen;
        this.msisdn = msisdn;
        this.groupId = groupId;
        this.operType = operType;
        this.effectType = effectType;
        this.path = "/ec/manage/group-managment";
        HashMap<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token",tkoen);
        bodyMap.put("msisdn",msisdn);
        bodyMap.put("groupId",groupId);
        bodyMap.put("operType",operType);
        bodyMap.put("effectType",effectType);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
